<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>句容机关工委网站管理后台</title>
<!--                       CSS                       -->
<!-- Reset Stylesheet -->
<link rel="stylesheet" href="../style/reset.css" type="text/css" media="screen" />
<!-- Main Stylesheet -->
<link rel="stylesheet" href="../style/style.css" type="text/css" media="screen" />
<!-- Invalid Stylesheet. This makes stuff look pretty. Remove it if you want the CSS completely valid -->
<link rel="stylesheet" href="../style/invalid.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../style/msgbox.css" type="text/css" />
<link rel="stylesheet" href="../js-plugin/jquery-ui/jquery-ui.css" type="text/css" />
<!--                       Javascripts                       -->
<!-- jQuery -->

<script type="text/javascript" src="../js-plugin/jquery-1.6.min.js"></script>
<!-- jQuery Configuration -->
<script type="text/javascript" src="../js-plugin/simpla.jquery.configuration.js"></script>
<!-- Facebox jQuery Plugin -->
<script type="text/javascript" src="../js-plugin/facebox.js"></script>
<script type="text/javascript" src="../js-plugin/jquery-ui/jquery-ui.min.js"></script>

<script src="../js-plugin/jquery.easy-confirm-dialog.js"></script>
<script type="text/javascript" src="../js-plugin/jquery.query-2.1.7.js"></script>
<script type="text/javascript" src="../js-plugin/jquery.template.js"></script>
<script src="../js-plugin/tpl.js"></script>
<script src="../js/master/AdsList.js"></script>

</head>

<body>
<div class="loadingbox clearfix"></div>
<div id="main-content">

<div class="content-box">
      <!-- Start Content Box -->
      <div class="content-box-header">
        <h3>广告发布管理</h3>
      </div>
      <!-- End .content-box-header -->
      <div class="content-box-content">
        <div class="tab-content default-tab">
          <!-- This is the target div. id must match the href of this div's tab -->
          <div class="notification attention png_bg" style="display:none"> <a href="#" class="close"><img src="/images/manage/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
            <div id="errormsg"> 错误信息</div>
          </div>
          <table class="datalist">
            <thead>
              <tr>
                <th width="58%">广告名称</th>
                <th width="26%">发布状态</th>
                <th width="17%">管理</th>
              </tr>
            </thead>

            <tbody>
            <#list manager.adsList(20) as ads>
              <tr id="tr_${ads.id?c}">
                <td>${ads.name}</td>
                <td><input type="radio" id="radio${ads.id?c}" name="radio" value="${ads.id?c}" <#if ads.active == 1>checked="checked"</#if> /><label for="radio${ads.id?c}"><#if ads.active == 1>使用中<#else>激  活</#if></label></td>
                <td>
                  <!-- Icons -->
                  <a class="button entInfo" href="AdsEdit?id=${ads.id?c}">编辑</a> <a class="button deleteBtn" href="${ads.id?c}">删除</a> </td>
              </tr>
            </#list>
            </tbody>
            
            <tfoot>
              <tr>
                <td colspan="3">
                  <div class="pagination">${manager.getPaginator()}</div>
                  <!-- End .pagination -->
                  <div class="clear"></div>
                </td>
              </tr>
            </tfoot>
            
          </table>
        </div>
        <!-- End #tab1 -->
      </div>
      <!-- End .content-box-content -->
    </div>
</div>
</body>
</html>
